package fachklassen.entities;

public class Kunde {

	private int knr;
	private static int kundenzaehler=0;
	private String name;
	private String adresse;
	
	public Kunde(String name, String adresse) {
		this.knr=++kundenzaehler;
		this.name=name;
		this.adresse=adresse;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAdresse() {
		return adresse;
	}

	public void setAdresse(String adresse) {
		this.adresse = adresse;
	}

	public int getKnr() {
		return knr;
	}
	
	@Override
	public String toString(){
		return ""+knr+": "+name+" ("+adresse+")";
	}
}
